'''
/*
 * @Author: wevsmy 
 * @Date: 2017-10-20 19:02:22 
 * @Last Modified by: wevsmy
 * @Last Modified time: 2017-10-20 19:28:30
 */
'''

# def w1(func):
#     def inner():
#         print("---正在验证权限---")
#         func()
#     return inner

# def f1():
#     print("-----1------")
# def f2():
#     print("-----2------")

#通用装饰器
def fun(*args,**kwargs):
    def func(funcname):
        def func_in(*args,**kwargs):
            return funcname(*args,**kwargs) 
        return func_in
    return func


@fun( )
def f1(a,b):
    print("-----i------a=%s-b=%s"%(a,b))

a = f1(11,12)

print(a)